

import { createHashHistory } from "history"
export const HashHistroy = new createHashHistory()

export const roleList = [
    {
        id: 0,
        value: 0,
        text: "学员",
        color: "#0f0"
    },
    {
        id: 1,
        value: 1,
        text: "班主任",
        color: "#f50"
    },
    {
        id: 2,
        value: 2,
        text: "讲师",
        color: "#E6A23C"
    },
    {
        id: 3,
        value: 3,
        text: "管理员",
        color: "#F56C6C"
    }
]

export const common = {
    gotowhere(history, url) {
        history.push(url)
    }
}




export const annoTypes = [
    {
        id: 0,
        value: 0,
        text: "普通公告",
        color: "#0f0"
    },
    {
        id: 1,
        value: 1,
        text: "重要公告",
        color: "#f50"
    },
    {
        id: 2,
        value: 2,
        text: "紧急公告",
        color: "#E6A23C"
    },
    {
        id: 3,
        value: 3,
        text: "置顶公告",
        color: "#F56C6C"
    }
]